//
//  StateRecordTableView.m
//  WorkNest
//
//  Created by qbm360 on 15/7/31.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "DeliveryRecordTableView.h"

@interface DeliveryRecordTableView ()

@property (strong, nonatomic) IBOutlet UIView *view;
@property (weak, nonatomic) IBOutlet UILabel *color;
@property (weak, nonatomic) IBOutlet UILabel *size;
@property (weak, nonatomic) IBOutlet UILabel *count;

@end

@implementation DeliveryRecordTableView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self) {
        [self setup];
    }
    return self;
}

- (void)setup
{
    [[NSBundle mainBundle] loadNibNamed:@"DeliveryRecordTableView" owner:self options:nil];
    _view.frame = self.bounds;
    [self addSubview:_view];
}

//- (void)setArray:(NSArray *)array {
//    _array = array;
//    self.color.text = array[0];
//    self.size.text = array[1];
////    self.count.text = array[2];
//    self.date.text = array[2];
//}

- (void)setModel:(StatusRecordModel *)model {
    _model = model;
    self.color.text = _model.executor;
    self.size.text = _model.content;
    self.count.text = _model.time;
}

@end
